home *** CD-ROM | disk | FTP | other *** search
/ Columbia Kermit / kermit.zip / newsgroups / misc.19981211-19990422 / 000201_news@watsun.cc.columbia.edu _Tue Feb 9 16:53:43 1999.msg < prev    next >
Internet Message Format  |  2020-01-01  |  4KB

  1. Return-Path: <news@watsun.cc.columbia.edu>
  2. Received: from newsmaster.cc.columbia.edu (newsmaster.cc.columbia.edu [128.59.59.30])
  3.     by watsun.cc.columbia.edu (8.8.5/8.8.5) with ESMTP id QAA21196
  4.     for <kermit.misc@watsun.cc.columbia.edu>; Tue, 9 Feb 1999 16:53:41 -0500 (EST)
  5. Received: (from news@localhost)
  6.     by newsmaster.cc.columbia.edu (8.8.5/8.8.5) id QAA28438
  7.     for kermit.misc@watsun.cc.columbia.edu; Tue, 9 Feb 1999 16:40:49 -0500 (EST)
  8. X-Authentication-Warning: newsmaster.cc.columbia.edu: news set sender to <news> using -f
  9. From: Denny Hardian <HardianD@aetna.com>
  10. Subject: Re: Need Help Using Kermit as a non-root user
  11. Date: Tue, 09 Feb 1999 16:24:35 -0500
  12. Organization: Connix - The Connecticut Internet Exchange
  13. Message-ID: <36C0A792.99F6B4C0@aetna.com>
  14. To: kermit.misc@mailrelay2.cc.columbia.edu
  15.  
  16. Greg,
  17. You have to include that non-root user as a member of uucp group so that it has
  18. permission to access /dev/tty2. HTH.
  19.  
  20. Denny
  21.  
  22. Gregory I. Hayes wrote:
  23.  
  24. > I am using aix 4.1.5.0. and C-Kermit  6.0.192. I have a C-Kermit script
  25. > called /usr/local/call-medb that dials out and transfers data to a remote
  26. > location and then recieves a response file. When it is run by root, it works
  27. > fine. The device that is being used for dial out is /dev/tty2. The problem I
  28. > am having is that tty2 is owned and in the group uucp. Whenever I try to run
  29. > the script with this setting not as root, I get the following error:
  30. >
  31. > Command file: /usr/local/call-medb, line 7
  32. > /dev/tty2: Permission denied
  33. > Sorry, access to device denied: /dev/tty2
  34. > ?Sorry, you must SET LINE first
  35. > Sorry, you must SET LINE or SET HOST first
  36. >
  37. > I tried setting  the suid bit for the script and set the owner as root
  38. > hoping this would give the script permission to do anything but it still
  39. > gives the error. If I manually change the owner of tty2 to root and its
  40. > group to system, It works fine ...but... the next time I run the script, the
  41. > owner and group have been changed back to uucp. Nothing is using the line
  42. > between dial outs. It is sometime used as a dial-in line, but this is rare.
  43. > I have tried manually setting tty2 to crw-rw-rw. And this works...but ...
  44. > when the script is finished it is changed to crw-rw--w- and the scrip fails
  45. > when it is run. I have attempted to change the condition of tty2 via a unix
  46. > chmod or chown or chgrp from kermit, but I get an error stating that this is
  47. > not allowed. I've tried everything I know of Any one outthere have any idea
  48. > why tty2 is being changed or how I can let a non root user run it ? The
  49. > script is below:
  50. >
  51. > #!/usr/local/bin/kermit
  52. > #run chmod a+rw /dev/tty2
  53. > cd /lin1/usr/ebill/mc
  54. > log trans meb.transactions append
  55. > set session log text
  56. > set flow xon/xoff
  57. > set modem type multitech
  58. > set modem maximum-speed 19200
  59. > set modem dial-command ATDT%s\{13}
  60. > set line /dev/tty2
  61. > set speed 19200
  62. > set dial retries 100
  63. > set dial interval 10
  64. > set terminal autodownload on
  65. > # NOTE - Unix Kermit expects files to be terminated in LF only
  66. > # our files are terminated in CRLF, hence the following line
  67. > # [HERBR] 12-23-98
  68. > set file type text
  69. > #set file end-of-line lf
  70. > log session medb.session append
  71. > delete response.emc
  72. > dial 9,12252312251
  73. > input 360 Quit
  74. > output 4\13
  75. > input 5 ...
  76. > #send /lin1/usr/ebill/mc/medpartb
  77. > send medpartb
  78. > input 360 (Y/N)
  79. > output Y
  80. > #receive /lin1/usr/ebill/mc/response.emc
  81. > receive response.emc
  82. > hangup
  83. > set line
  84. > run /usr/local/reset.tty2
  85. > exit
  86. >
  87. > Gregory I. Hayes
  88. > gihayes@bellsouth.net
  89.